FUNCTION ZFIFM_VIM_DETERM_AUTOPOST.
*"----------------------------------------------------------------------
*"*"本地接口：
*"  IMPORTING
*"     REFERENCE(INDEX_HEADER) TYPE  /OPT/VIM_1HEAD
*"  EXPORTING
*"     REFERENCE(AUTOPOST_FLAG)
*"  TABLES
*"      INDEX_ITEM STRUCTURE  /OPT/VIM_1ITEM OPTIONAL
*"----------------------------------------------------------------------
*  DATA: lo_post_det TYPE REF TO /opt/cl_d_determine_autopost.
*
*  CREATE OBJECT lo_post_det
*    EXPORTING
*      ip_index_header = index_header
*      it_index_item   = index_item[].
*
*  CALL METHOD lo_post_det->determination
*    IMPORTING
*      pe_autopost_flag = autopost_flag.


  AUTOPOST_FLAG = INDEX_HEADER-CUSTOM_FIELD4. "财务复核通过可自动过账


ENDFUNCTION.
